package com.swak.mybatis;

import org.junit.Test;

import com.swak.mybatis.entity.Goods;
import com.swak.mybatis.mapper.GoodsMapperPlus;

/**
 * MyBatis 通过注册 Mapper
 * 
 * @author lifeng
 * @date 2021年1月21日 上午10:46:41
 */
public class MybatisTest3 extends MyBatisTest {

	@Test
	public void test() {
		GoodsMapperPlus goodsMapper = plusSessionTemplate.getMapper(GoodsMapperPlus.class);
		Goods goods = goodsMapper.selectById(1L);
		System.out.println(goods.getName());
	}
}